package xkp.lesson1;

public class 等腰三角形 {
	public static void main(String[] args) {
		//打印n层
		int n = 11;
		for(int i = 1; i <= n;i++) {
			for(int j = 1; j <= 2*n-1; j++) {
				if(j>= n-(i-1) && j <= n+(i-1)) {
					System.out.print("*");
				}else {
					System.out.print(" ");
				}
			}
			System.out.println();
		}
	}

}
